package com.huluobo.a2111douyindemo.mine;

import android.app.Application;

import androidx.annotation.NonNull;
import androidx.lifecycle.MutableLiveData;

import com.huluobo.mvvm_base.mvvm.base.viewmodel.BaseViewModel;
import com.huluobo.mvvm_base.mvvm.bean.GetLikeVideoBeanResult;

/**
 * Created by LC on 2024/3/13.
 */
public class WorksViewModel extends BaseViewModel<WorksRepo> {
    MutableLiveData<GetLikeVideoBeanResult> success = new MutableLiveData<>();

    MutableLiveData<String> failed = new MutableLiveData<>();

    public void getLikeVideos() {
        repo.getLikeVideos(success, failed);
    }

    public WorksViewModel(@NonNull Application application) {
        super(application);
    }

    @Override
    protected WorksRepo createRepo() {
        return new WorksRepo();
    }
}
